.class public Lcom/instagram/android/login/b/h;
.super Lcom/instagram/e/b/b;
.source "LoginFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field private a:Lcom/instagram/android/login/d/f;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/view/View;

.field private e:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 193
    return-void
.end method

.method private X()V
    .locals 4

    .prologue
    .line 53
    new-instance v0, Ljava/util/Date;

    invoke-direct {v0}, Ljava/util/Date;-><init>()V

    invoke-virtual {v0}, Ljava/util/Date;->getTime()J

    move-result-wide v0

    const-wide v2, 0x139b37cbc60L

    cmp-long v0, v0, v2

    if-gez v0, :cond_0

    .line 54
    sget v0, Lcom/facebook/ba;->wrong_datetime:I

    invoke-static {v0}, Lcom/instagram/n/j;->a(I)V

    .line 62
    :goto_0
    return-void

    .line 58
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/login/b/h;->a:Lcom/instagram/android/login/d/f;

    invoke-direct {p0}, Lcom/instagram/android/login/b/h;->Z()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0}, Lcom/instagram/android/login/b/h;->aa()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/android/login/d/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method private Y()V
    .locals 2

    .prologue
    .line 77
    invoke-virtual {p0}, Lcom/instagram/android/login/b/h;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/login/b/h;->v()Landroid/view/View;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/n/k;->a(Landroid/content/Context;Landroid/view/View;)V

    .line 78
    invoke-virtual {p0}, Lcom/instagram/android/login/b/h;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 80
    return-void
.end method

.method private Z()Ljava/lang/String;
    .locals 1

    .prologue
    .line 156
    iget-object v0, p0, Lcom/instagram/android/login/b/h;->b:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/login/b/h;)V
    .locals 0
    .parameter

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/instagram/android/login/b/h;->X()V

    return-void
.end method

.method private aa()Ljava/lang/String;
    .locals 1

    .prologue
    .line 160
    iget-object v0, p0, Lcom/instagram/android/login/b/h;->c:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private ab()V
    .locals 2

    .prologue
    .line 213
    invoke-direct {p0}, Lcom/instagram/android/login/b/h;->aa()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-direct {p0}, Lcom/instagram/android/login/b/h;->Z()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 214
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/login/b/h;->d:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 218
    :goto_0
    return-void

    .line 216
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/login/b/h;->d:Landroid/view/View;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    goto :goto_0
.end method

.method static synthetic b(Lcom/instagram/android/login/b/h;)V
    .locals 0
    .parameter

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/instagram/android/login/b/h;->ab()V

    return-void
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 84
    sget v0, Lcom/facebook/ax;->fragment_login:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 86
    sget v1, Lcom/facebook/aw;->username:I

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/EditText;

    iput-object v1, p0, Lcom/instagram/android/login/b/h;->b:Landroid/widget/TextView;

    .line 87
    invoke-virtual {p0}, Lcom/instagram/android/login/b/h;->i()Landroid/os/Bundle;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 88
    iget-object v1, p0, Lcom/instagram/android/login/b/h;->b:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/instagram/android/login/b/h;->i()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "com.instagram.android.login.fragment.ARGUMENT_USERNAME_OR_EMAIL"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 90
    :cond_0
    sget v1, Lcom/facebook/aw;->password:I

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/EditText;

    iput-object v1, p0, Lcom/instagram/android/login/b/h;->c:Landroid/widget/TextView;

    .line 91
    sget v1, Lcom/facebook/aw;->login_fragment_login_button:I

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/instagram/android/login/b/h;->d:Landroid/view/View;

    .line 92
    sget v1, Lcom/facebook/aw;->forgot_password_link:I

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/instagram/android/login/b/h;->e:Landroid/view/View;

    .line 94
    new-instance v1, Lcom/instagram/android/login/b/n;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/instagram/android/login/b/n;-><init>(Lcom/instagram/android/login/b/h;Lcom/instagram/android/login/b/i;)V

    .line 95
    iget-object v2, p0, Lcom/instagram/android/login/b/h;->b:Landroid/widget/TextView;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 96
    iget-object v2, p0, Lcom/instagram/android/login/b/h;->c:Landroid/widget/TextView;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 97
    iget-object v1, p0, Lcom/instagram/android/login/b/h;->c:Landroid/widget/TextView;

    new-instance v2, Lcom/instagram/android/login/b/i;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/i;-><init>(Lcom/instagram/android/login/b/h;)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    .line 112
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/login/b/h;->b:Landroid/widget/TextView;

    invoke-interface {v1, v2}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 113
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/login/b/h;->c:Landroid/widget/TextView;

    invoke-interface {v1, v2}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 115
    iget-object v1, p0, Lcom/instagram/android/login/b/h;->d:Landroid/view/View;

    new-instance v2, Lcom/instagram/android/login/b/j;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/j;-><init>(Lcom/instagram/android/login/b/h;)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 122
    iget-object v1, p0, Lcom/instagram/android/login/b/h;->e:Landroid/view/View;

    new-instance v2, Lcom/instagram/android/login/b/k;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/k;-><init>(Lcom/instagram/android/login/b/h;)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 129
    iget-object v1, p0, Lcom/instagram/android/login/b/h;->b:Landroid/widget/TextView;

    new-instance v2, Lcom/instagram/android/login/b/l;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/l;-><init>(Lcom/instagram/android/login/b/h;)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 139
    return-object v0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 165
    new-instance v0, Lcom/instagram/android/login/b/m;

    invoke-direct {v0, p0}, Lcom/instagram/android/login/b/m;-><init>(Lcom/instagram/android/login/b/h;)V

    return-object v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 4
    .parameter

    .prologue
    .line 47
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 48
    new-instance v0, Lcom/instagram/android/login/d/f;

    invoke-virtual {p0}, Lcom/instagram/android/login/b/h;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/login/b/h;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    new-instance v3, Lcom/instagram/android/login/a/e;

    invoke-direct {v3, p0}, Lcom/instagram/android/login/a/e;-><init>(Landroid/support/v4/app/Fragment;)V

    invoke-direct {v0, v1, v2, v3}, Lcom/instagram/android/login/d/f;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/android/d/j/a;)V

    iput-object v0, p0, Lcom/instagram/android/login/b/h;->a:Lcom/instagram/android/login/d/f;

    .line 49
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 222
    const-string v0, "login"

    return-object v0
.end method

.method public f_()V
    .locals 0

    .prologue
    .line 72
    invoke-direct {p0}, Lcom/instagram/android/login/b/h;->Y()V

    .line 73
    invoke-super {p0}, Lcom/instagram/e/b/b;->f_()V

    .line 74
    return-void
.end method

.method public g_()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 144
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 146
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/login/b/h;->b:Landroid/widget/TextView;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 147
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/login/b/h;->c:Landroid/widget/TextView;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 149
    iput-object v2, p0, Lcom/instagram/android/login/b/h;->b:Landroid/widget/TextView;

    .line 150
    iput-object v2, p0, Lcom/instagram/android/login/b/h;->c:Landroid/widget/TextView;

    .line 151
    iput-object v2, p0, Lcom/instagram/android/login/b/h;->d:Landroid/view/View;

    .line 152
    iput-object v2, p0, Lcom/instagram/android/login/b/h;->e:Landroid/view/View;

    .line 153
    return-void
.end method

.method public w()V
    .locals 0

    .prologue
    .line 66
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 67
    invoke-direct {p0}, Lcom/instagram/android/login/b/h;->ab()V

    .line 68
    return-void
.end method
